package com.xique.park.bean.domain.wechat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * @author shd
 * @create 2022/4/26 17:07
 */
@Data
@TableName(value = "c_wx_message_template")
public class WxMessageTemplate {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id",type = IdType.AUTO)//指定自增策略
    private Long id;

    /** 类型（1：门禁开门通知） */
    @Excel(name = "类型", readConverterExp = "1=：门禁开门通知")
    private Integer type;

    /** 微信模板id */
    @Excel(name = "微信模板id")
    private String templateId;

    private String status;

    /** 标题 */
    @Excel(name = "标题")
    private String first;

    /** 标题颜色 */
    @Excel(name = "标题颜色")
    private String firstColor;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 备注颜色 */
    @Excel(name = "备注颜色")
    private String remarkColor;

    private Integer jumpType;

    /** 跳转地址 */
    @Excel(name = "跳转地址")
    private String url;

    /** 小程序app_id */
    @Excel(name = "小程序app_id")
    private String miniAppId;

    /** 小程序跳转地址 */
    @Excel(name = "小程序跳转地址")
    private String pagepath;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createUser;

    /** 更新人 */
    @Excel(name = "更新人")
    private Long updateUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @TableField(exist = false)
    private String operate;
}
